package cn.tedu.csmall.product.pojo.dto;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotNull;
import java.io.Serializable;

/**
 * 相册数据据DTO类
 *
 * @author Angelina
 * @version 0.0.1
 */
@Data
public class AlbumAddNewDTO implements Serializable {

    /**
     * 相册名称
     */
    @ApiModelProperty(value = "相册名称", required = true, example = "小米手机图片相册")
    @NotNull(message = "添加相册失败，必须填写相册名称！")
    private String name;
    /**
     * 相册简介
     */
    @ApiModelProperty(value = "相册简介", required = true, example = "小米手机图片相册简介")
    @NotNull(message = "添加相册失败，必须填写相册简介！")
    private String description;
    /**
     * 相册序号
     */
    @ApiModelProperty(value = "排序序号", required = true, example = "88")
    @NotNull(message = "添加相册失败，必须填写排序序号!")
    private Integer sort;

}
